var express = require('express');
var router = express.Router();

var dataCtrl = require('../controllers/user.controller')

router.get('/data/:id',dataCtrl.get);

router.post('/data',dataCtrl.create);
router.post('/data/:id',dataCtrl.update);
router.delete('/data/:id',dataCtrl.remove);
router.post('/list',dataCtrl.list);
router.post('/removes/:ids',dataCtrl.removes);
router.post('/login',dataCtrl.login);

module.exports = router;
